package org.jeecg.modules.basic.print.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.basic.print.entity.WmsDocumentTypeFields;
import org.jeecg.modules.basic.print.entity.WmsDocumentTypeStatus;
import org.jeecg.modules.basic.print.entity.WmsMaterialFields;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 打印配置
 * @Author: jeecg-boot
 * @Date:   2023-09-13
 * @Version: V1.0
 */
@Data
@ApiModel(value="print_configPage对象", description="打印配置")
public class PrintConfigPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**业务单据*/
	@Excel(name = "业务单据", width = 15, dicCode = "business_type")
    @Dict(dicCode = "business_type")
	@ApiModelProperty(value = "业务单据")
    private String businessType;
	/**单据类型*/
	@Excel(name = "单据类型", width = 15)
	@ApiModelProperty(value = "单据类型")
    private String documentType;
	/**模板地址*/
	@Excel(name = "模板地址", width = 15)
	@ApiModelProperty(value = "模板地址")
    private String templateUrl;
	/**逻辑删除*/
	@Excel(name = "逻辑删除", width = 15)
	@ApiModelProperty(value = "逻辑删除")
    private String delFlag;
	/**组织*/
	@Excel(name = "组织", width = 15)
	@ApiModelProperty(value = "组织")
    private String organization;
	/**选择状态*/
	@Excel(name = "选择状态", width = 15)
	@ApiModelProperty(value = "选择状态")
    private String status;

	@ExcelCollection(name="字段配置")
	@ApiModelProperty(value = "字段配置")
	private List<WmsDocumentTypeFields> wmsDocumentTypeFieldsList;
	@ExcelCollection(name="状态配置")
	@ApiModelProperty(value = "状态配置")
	private List<WmsDocumentTypeStatus> wmsDocumentTypeStatusList;
	@ExcelCollection(name="表体物料字段配置")
	@ApiModelProperty(value = "表体物料字段配置")
	private List<WmsMaterialFields> wmsMaterialFieldsList;

	@ApiModelProperty(value = "物料分类集合")
	private String materialTypeIds;

	@ApiModelProperty(value = "需要拣货")
	private Integer needPick;

	@ApiModelProperty(value = "自动出入库")
	private Integer receiptCanAutoExecute;

	@ApiModelProperty(value = "任务可分批出入库")
	private Integer taskCanExecuteBatches;

	@ApiModelProperty(value = "出入库物料可不存在于任务中")
	private Integer materialCanOtherWay;

	@ApiModelProperty(value = "需要装车复核")
	private Integer needLoadCheck;

	@ApiModelProperty(value = "标签打印地址")
	private String labelUrl;

}
